Skip to content

Conversation

@janos-laszlo
Copy link

I encountered some problems while using this code. The buffer has to be resized on the final block to have the exact length of the remaining JSON, otherwise the reader will read any leftover and throw an exception. For example it can happen that the buffer is:
"High": 60, "Low": 20 } }, "Summary": "Hot" }10 }, "Hot":
there is leftover after the end object, when the reader reaches '10' it throws with 'unexpected token':
10 }, "Hot":

@janos-laszlo janos-laszlo requested review from a team and gewarren as code owners November 7, 2025 22:45
@dotnetrepoman dotnetrepoman bot added this to the November 2025 milestone Nov 7, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-fundamentals/svc community-contribution Indicates PR is created by someone from the .NET community. labels Nov 7, 2025
@janos-laszlo
Copy link
Author

@dotnet-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant